package com.soft.cqlinglong.common.model;

import java.io.Serializable;

/**
 * ztree  使用ztree 的基础属性进行控制
 * @author 黄学乾 778142659@qq.com
 * @create 2017-07-24 19:27
 **/
public class Ztree implements Serializable {

    private String id;

    private String pId;

    private String name;

    private Boolean isParent;

    private Boolean open = true;

    private String iconSkin;

    private Boolean checked = false;

    private Object object;//存放任意对象

    // fastjson 使用 http://blog.csdn.net/wx_962464/article/details/37612861
    // 这里值得注意的是， 默认的构造函数一定要写，不然是无法解析的。
    // （对于fastjson 严格按照JavaBean的规范来，有一点不对就无法解析，这里一定要切记，每一个实体类的属性的get , set方法必须写）
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getParent() {
        return isParent;
    }

    public void setParent(Boolean parent) {
        isParent = parent;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public String getIconSkin() {
        return iconSkin;
    }

    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
